package com.qst.controller;

import com.qst.pojo.EchartsData;
import com.qst.service.EchartsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @ClassNmae: EchartsController
 * @Author: 邓嘉顺
 * @Description:
 */
@Controller
@RequestMapping("chart")
public class EchartsController {
    @Autowired
    EchartsService echartsService;
    @RequestMapping("/getEchartsData")
    @ResponseBody
    public List<EchartsData> getEchartsData(){
        return echartsService.getEchartsData();
    }
}
